package com.cc.controller;

import com.cc.entity.Books;
import com.cc.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 33314
 * @version 1.0
 * @description: TODO
 * @date 2025/6/16 14:46
 */
@RestController
@RequestMapping("/book")
public class BooksController {
    @Autowired
    private BookService bookService;
    /**
     * @description: TODO 获取数据列表
     * @author
     * @date
     * @version 1.0
     */
    @RequestMapping("/getBookList")
    public List<Books> getBookList(){
        return bookService.getBookList();
    }
}
